import request from '@/libs/request'
/**
 * 登录
 * @param data object 用户账号密码
 */

export function list (data) {
  return request.get('getartifilist', data)
}

export function add (data) {
  return request.post('artifiadd', data)
}

export function del (id) {
  return request.get('artifidel/' + id)
}

export function modify (data) {
  return request.put('modifypw/' + data.uid, data)
}

export function change (data) {
  return request.put('banlancechanges/' + data.uid, data)
}

export function edit (data) {
  return request.put('editartifi/' + data.uid, data)
}

export function getagent () {
  return request.get('getagent', {})
}
